/*
 * @Author: cgl
 * @Date: 2023-04-13 15:19:33
 * @LastEditors: cgl
 * @LastEditTime: 2023-06-13 10:14:00
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\resource\certificateType.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询证书类型分页列表
export function equipmentCertificateTypeList(params) {
  return request({
    url: '/basic/equipmentCertificateType/list',
    method: 'get',
    params,
  })
}
// 获取证书类型列表
export function equipmentCertificateTypeListing(params) {
  return request({
    url: '/basic/equipmentCertificateType/listing',
    method: 'get',
    params,
  })
}
// 导出证书类型列表
export function equipmentCertificateTypeExport(params) {
  return request({
    url: `/basic/equipmentCertificateType/export`,
    method: "post",
    params,
  });
}
// 获取证书类型详细信息
export function equipmentCertificateTypeDetail(id) {
  return request({
    url: '/basic/equipmentCertificateType/' + id,
    method: 'get'
  })
}
// 新增证书类型
export function equipmentCertificateTypeAdd(data) {
  return request({
    url: `/basic/equipmentCertificateType/add`,
    method: "post",
    data,
  });
}
// 修改证书类型
export function equipmentCertificateTypeEdit(data) {
  return request({
    url: '/basic/equipmentCertificateType/edit',
    method: 'post',
    data,
  })
}
// 删除证书类型
export function equipmentCertificateTypeRemove(ids) {
  return request({
    url: '/basic/equipmentCertificateType/remove/' + ids,
    method: 'get'
  })
}
// 获取证书类型名称
export function nameListing(params) {
  return request({
    url: '/basic/equipmentCertificateType/nameListing',
    method: 'get',
    params,
  })
}
// 查询仪器类型下的证书类型
export function getListByInspectionTypeCode(instrumentTypeCode) {
  return request({
    url: '/basic/equipmentCertificateType/getListByInspectionTypeCode/' + instrumentTypeCode,
    method: 'get'
  })
}
// 查询证书类型的校准因子列表
export function getCalibrationFactors(id) {
  return request({
    url: '/basic/equipmentCertificateType/getCalibrationFactors/' + id,
    method: 'get'
  })
}